def custom_round(value):
    """Custom rounding function to round x.5 up to x+1."""
    return int(value + 0.5) if value > 0 else int(value - 0.5)